Hi all ,
I have a ws target which one of its functions gets an bytes by value . That array represent a pic file ( jpg , png ,bmp )
The function needs to convert this array into a pic file back .
what i am doing now is :
1. Blob() converts bytes into a blob .
2. FileWriteEx() converts the blob into a pic file ( just a temp.bmp into a temp directory )
3. CopyFileA() copies the file from one temp location into another one.
My questions are :
1. Does FileWriteEx() can converts blob into a bmp file ?
2. Why i don't see the BMP file in the temp directory ? the FileWriteEx() returns > 0 .
3. The CopyFileA() returns 0 (zero) , Why ? I have checked permissions ( admin) .
two questions :
1. does filewriteex() can write a file other suffix than bmp ?
2. what is the Web Service's work area ?
1) Yes, you can use the FileWriteEx ( ) command to create any file type with any appropriate extension name that you need. The command is indifferent to the file extension used. Its totally up to your App.
2) The Web Service's work area is defined where you deploy the WS to under the assigned IIS folder plus, the development path where WS's source code is kept. For example, a WS PBL located at "C:\Dev\PB2017\Moshe" that is deployed to "C:\Ingetpub\wwwroot\Moshe" - the fully qualified path to the WS's deployed area under IIS (aka run-time) will be ... "C:\inetpub\wwwroot\Moshe\file\common\C\Dev\PB2017\Moshe" and the WS's work area will be "C:\inetpub\wwwroot\Moshe_root\file\session\__webservice__\c". This algorithm is consistent for WS placement and execution since PB 11.0
Regards ... Chris