Click here to Skip to main content
15,896,339 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone:

Does image data type be converted to byte array in sybase? I apply web service to get data set in sybase( image data type). I use byte[] to get returning of web service. Then i use the "response.binarywrite(byte[])" to show the image.(ASP.NET C#) But there' s a image distortion problem (When i zoon in the image, some points are missed). I don't know why Does anyone know the image data type in sybase could be transfered to byte array?

Thank you very much.


1 Sybase
Sybase db: 11.9.2
Adaptive server enterprise 12.5.1
Sybase.Data.AseClient:1.0.152.0
2 ASP.NET C# (Visual Studio 2008)
3 IE6
Posted
Updated 6-Dec-09 18:38pm
v2

1 solution

The odds of you getting image data that is viewable, yet misses some pixels, is close to zero, unless you're passing data as a BMP file. If it's a jpg or png, then it's compressed, if it's corrupted, you won't be able to open it at all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900