Image from a WebService

  • Thread starter Thread starter Nicolas
  • Start date Start date
N

Nicolas

Hello!

I have a question: I have a database in MySql that has two fields (code and
image). Now, I want to create a WebService that takes the image of the most
current row (the code is the date in which the image took). And then, create
a page in ASP.NET that calls this WebService, show the image and repeat this
behavior every 5 seconds (it is the time that is take a new image be
creating in the base of information). Can someone help or at least orientate
me in this?

Thank you very much and sorry about my poor english :)
 
Nicolas,
ASP.NET WebServices transmit images as type byte[] (a byte array) and they
are typically sent over the wire as Base64 Encoded string of data.

Your consumer application should be able to take this byte[] stream result
of it's WebMethod call and, using one of the Image Class overloads, load it
into an Image object for display.

Peter
 
Back
Top