Passing an array of images to a Web Service. Can this be done?

B

BillGatesFan

We need to send images to a machine so they can be processed and
adding to our web server. Can a asp.net accept an arry of images(maybe
an array of byte arrays)?

Any help is appreciated.
 
D

Dale

You cannot pass a jagged array (or array of arrays as in byte[][]) to a web
service but you can pass a multi-dimensional array (as in byte[x,y]).

Dale
 
J

John Saunders [MVP]

Dale said:
You cannot pass a jagged array (or array of arrays as in byte[][]) to a
web
service but you can pass a multi-dimensional array (as in byte[x,y]).

Dale
--
Dale Preston
MCAD C#
MCSE, MCDBA


BillGatesFan said:
We need to send images to a machine so they can be processed and
adding to our web server. Can a asp.net accept an arry of images(maybe
an array of byte arrays)?

Try passing something like this:

public class Image

{

public string Title;

public byte[] ImageData;

}

public class ImageList

{

public string ListTitle;

public Image[] Images;

}
 
J

John Saunders [MVP]

Dale said:
That is a good point, John, but passing the Image class or the ImageList
class you defined has its own set of problems.

Dale, could you please elaborate on some of those problems? I don't know of
any that matter.
 
J

John Saunders [MVP]

Dale said:
Did you click the link in the post you quoted?

No, I didn't.

I have done so now, and still don't see any problems with passing the
classes I defined. I would appreciate it if you could elaborate on why there
are any problems passing those particular classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top