-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jpegdecompresssurface : picture decode failed : e00002d1 #40
Comments
Please try the |
I used types branch and used the sample project for testing but same. |
It could be related to this: What version of SQL Server are you using? |
I am using the SQL EXPRESS 2016. Additionally, I am trying to load the image that saved by C# program i made. but in iOS when i tried to do like that with above code , it is showing |
These three pictures , i used to try. |
Hello , Mr.Martin Rybak. |
Please put a breakpoint on line 544 of https://github.com/martinrybak/SQLClient/blob/types/SQLClient/SQLClient/SQLClient/SQLClient.m#L544 What is the value of |
in image type the column size is 4096 |
column->size is 4096 |
OK, to be sure, put a breakpoint on this line and verify that https://github.com/martinrybak/SQLClient/blob/types/SQLClient/SQLClient/SQLClient/SQLClient.m#L261 |
Also try changing your data type from |
I tried both type, means , i saved the data to image type and varbinary(max) type |
OK, in the freetds docs I found the following:
http://www.freetds.org/userguide/freetdsconf.htm Try adding a file called
Then add an environment variable to your app called http://www.freetds.org/userguide/envvar.htm See if that helps. |
sorry but my app means? |
Yes, add it to your iOS project. |
yeah ,i added freetds.conf to SQLClint folder , but i am not sure about the environment variable adding , can you guide me a bit more , sir? |
freetds.conf path would be full path like this "/Volumes/Mac_Data/KO/pos_australia/latest/SQLClient_Type/SQLClient-types/SQLClient/SQLClient/SQLClient/freetds.conf" |
I added with your requirement and ran the project |
I got file path using your reference source code , |
what value would i check by debugging? |
The value must be relative to your app. Try |
I changed with your instruction |
Try setting other values to verify that TDS is finding your file. |
i setup the sql express 2016 to other computer windows 10 system. I am really sorry for bothering your time, but can you teach me via my screen? like using teamviewer,sir? |
I'm sorry, I can't do that. Please do some reading up on FreeTDS until you can customize the |
so the conclsion is change the text size? |
i facing this issue in my iOS app. please help me out. thank you. in android application is working fine to get binary image from SQL server but facing issue in iOS and load some part of image only. |
can you show me the code?
…On Sat, Aug 4, 2018 at 12:38 PM, Harikant Amipara ***@***.***> wrote:
i facing this issue in my iOS app. please help me out. thank you.
in android application is working fine to get binary image from SQL server
but facing issue in iOS and load some part of image only.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#40 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATFs4zEkmQotzpgfH0rTkdfuzxIYLI7vks5uNTM4gaJpZM4LrSNS>
.
|
|
is this issue of getting size of image 4096byte is from SQL SERVER ? |
jpegdecompresssurface : picture decode failed : e00002d1
I can get exact same data as image data from sql server.
So i try to load image from NSData, below the code,
{
NSArray *table=[results objectAtIndex:0];
NSDictionary *row=[table objectAtIndex:0];
NSData *image_source=[row objectForKey:@"Company_Logo"];
UIImage *image=[[UIImage alloc] initWithData:image_source];
image=[UIImage imageWithData:image_source];
[self.imageView setImage :image];
}
but the final step , it is showing like this, in here
// [self.imageView setImage :image];
jpegdecompresssurface : picture decode failed : e00002d1
How can i solve this?
Regards.
The text was updated successfully, but these errors were encountered: