[mono-android] Invalid Byte Array Conversion in WCF Rest Service for Jpeg Image for Signature Pad

2014-06-11 Thread venkatesh
Hi all,

We are trying to implement the signature capture in Xamarin Android by using
the Xamarin Signature capture component. We need to save the signature image
in database by using WCF REST Service(POST Method). 

We have converted image(JPEG) into Byte array and sent the same as stream to
WCF REST Service.

In WCF REST Service, the stream is received and we tried to convert the Byte
array from stream into Image. But it shows conversion failed error as
"Parameter is not valid".

Kindly help me to resolve the issue. find below my sample code.

*Xamarin android (Client Side) coding part:*



*Sample WCF REST Service Function:*

   
 



--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Invalid-Byte-Array-Conversion-in-WCF-Rest-Service-for-Jpeg-Image-for-Signature-Pad-tp5713714.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] (no subject)

2014-06-11 Thread alhawiti





--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/no-subject-tp5713715.html
Sent from the Mono for Android mailing list archive at Nabble.com.___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Invalid Byte Array Conversion in WCF Rest Service for Jpeg Image for Signature Pad

2014-06-11 Thread Miljenko Cvjetko

Hi


On 20140611 12:30 , venkatesh wrote:

Hi all,

We are trying to implement the signature capture in Xamarin Android by using
the Xamarin Signature capture component. We need to save the signature image
in database by using WCF REST Service(POST Method).

We have converted image(JPEG) into Byte array and sent the same as stream to
WCF REST Service.
In mono WCF is not fully implemented / stable. It works for simple use 
cases, but for something more complex you'll probably hit limits.


http://www.mono-project.com/WCF_Development
http://forums.xamarin.com/discussion/370/rest-or-wcf
http://forums.xamarin.com/discussion/4557/how-to-consume-wcf-basic-service-from-xamarin-for-android
http://forums.xamarin.com/discussion/432/wcf-status-servicestack

maybe the cooperation with Microsoft will fix this in the future, but 
currently 2014-06 it is uncertain zone.


regards

Mel
<http://forums.xamarin.com/discussion/4557/how-to-consume-wcf-basic-service-from-xamarin-for-android> 



In WCF REST Service, the stream is received and we tried to convert the Byte
array from stream into Image. But it shows conversion failed error as
"Parameter is not valid".

Kindly help me to resolve the issue. find below my sample code.

*Xamarin android (Client Side) coding part:*



*Sample WCF REST Service Function:*


<http://mono-for-android.1047100.n5.nabble.com/file/n5713714/ErrorStack.jpg>




--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Invalid-Byte-Array-Conversion-in-WCF-Rest-Service-for-Jpeg-Image-for-Signature-Pad-tp5713714.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] monodroid codepage1252

2014-06-11 Thread Jacob Spencer
Hi All,

Just as a note, I have googled this and have searched the xamarin forum.

I have a couple of cases within my code where I use the 1252 codepage to do
some encoding.

When running in debug it works without issue, in debug I use shared mono
runtime and no linker.

When I move it to release mode (still no linker, shared mono off) my app
crashes.

Looking at my logcat this is due to the 1252 codepage not being support.

After having a look around on the xamarin forum and google I found I needed
to add the internationalization "west" option in the build configuration.

I did this, my app compiles, but my still crashes when running in release
mode due to not supporting codepage 1252.

Can anyway point me in the right direction because I am not sure what else
I can do?

Do I have to change it to "west" and then remove all codepages 1252 back to
encoding default?


Thanks
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[mono-android] (no subject)

2014-06-11 Thread alhawiti





--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/no-subject-tp5713718.html
Sent from the Mono for Android mailing list archive at Nabble.com.___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid