Hi I was wondering if there are any known problems with sending binary data to a .NET web service (other than those relating to file size etc)? I am trying to send a gif image as a byte array to my web service, which will then store it in an image field in
SQL server. I also have methods to retrieve the image via the web service, for display on the client browser, but it doesnt seem to work. I am able to save the byte array to the database by going directly to the relevant stored procedure, and retrieve it for
display via the web service. But when I try to save the image by sending the byte array via the web service, on retrieving the image for display at the client, I get a "lost-link" type image. I am able to do this succesfully with a PDF file, but for some reason
doing the same thing with an image doesnt work. Also worth noting - I was initially saving the binary array, via the web service, as a file, rather than in the database as an image blob, which worked fine. Its only since trying to save to the database that
Ive run into problems. Can anyone help?
"Also worth noting - I was initially saving the binary array, via the web service, as a file, rather than in the database as an image blob, which worked fine. Its only since trying to save to the database that Ive run into problems. " If I understand correctly,
you sent it as a byte[] to a web services, and then the service saves it as a file??? THAT IS EXACTLY WHAT I NEED TO DO! I have been searching and searching for a way to do this! Could you please please please send me some code so I can do this! Thanks a million!
(If do... if you don't, then just thanks a little) Anyway... please! thanks! (C# or VB.NET don't make a difference) Thanks! Josh
I too am trying to create a file from a web service. When I try to create a directory or file, it gets put in the c:\ directory, but I want it in my virtual directory. If I try to create the directory "c:/inetpub/wwwroot/myVirtualDir/SubDir" from my web service,
I get an UnauthorizedAccessException. How do I create a file or directory in the virtual directory of my web service? Thanks, John
theDIV
Member
5 Points
1 Post
Sending binary data to web service - problem
Jul 31, 2003 11:04 AM|LINK
twisterjosh
Member
654 Points
144 Posts
Re: Sending binary data to web service - problem
Aug 05, 2003 06:52 PM|LINK
myczek
Member
27 Points
4 Posts
Re: Sending binary data to web service - problem
Aug 05, 2003 08:03 PM|LINK