Questions tagged [bytestowrite]

3 questions
3
votes
3 answers

Usage of SerialPort.BytesToWrite

If the SerialPort.Write() is a blocking operation( or is it not?), what would be the need for the BytesToWrite() method. It would always evaluate to zero, cause the last Write operation either succeeded in writing all data or failed, in either case…
Shamim Hafiz - MSFT
  • 21,454
  • 43
  • 116
  • 176
1
vote
1 answer

How to retrieve file from database?

I have saved a file in a database by converting it in bytes. It is saved successfully but I am unable to retrieve it. Here is code which I used to convert and save: public static void databaseFilePut(string varFilePath) { byte[] file; using…
0
votes
2 answers

convert bytes array into image

I am recieving array of bytes from JSON webservice and it is a jpg image. i want to convert this byte array into image. on server side these bytes are correct and can be converted into image. But in Xcod i am unable to convert it into image. I have…
TalaT
  • 943
  • 2
  • 12
  • 20