Hi!
How to get an image from a RO service in client c#? The image is in DB MS SQL Server as Image data type.
Hi!
How to get an image from a RO service in client c#? The image is in DB MS SQL Server as Image data type.
Hello.
Please take a look at RemObjects SDK sample “ADO.NET” (see it at “C:\Users\Public\Documents\RemObjects Samples\RemObjects SDK for .NET\C#\ADO.NET”). It shows how RemObjects SDK could be used to retrieve data from database. Use this sample to get Image field from database, it should be presented with Byte[] type. Send it to the client and then convert Byte[] to Image field as follows:
public Image byteArrayToImage(byte[] byteArrayIn)
{
MemoryStream ms = new MemoryStream(byteArrayIn);
Image returnImage = Image.FromStream(ms);
return returnImage;
}
Thanks