Your local environment is not the same as your hosting environment. On your local environment you can easily add or remove features or functions. On your hosting environment you are bound to their rules and policy terms. You have to abide them in order to use their system to host your application (
even though you pay them!).
If hosting server team asks you to use only files for images and not binary data for them. You are required to do so. There is no other option for you to use in this context.
No matter what other patch you can create on your local environment.
The following code converts the (
valid!) binary data to a file, using the MIME type being passed to the response. You will get a file in the response. Try this,
Response.ContentType = file.MimeType;
Response.BinaryWrite((byte[])file.FileContent);
You can write this code in a separate ASP.NET server-side file. Then you can execute the code to get an image which can be then used in your process for further processes.
For more on this topic, please read:
http://www.mikesdotnetting.com/article/148/save-and-retrieve-files-from-a-sql-server-ce-database-with-webmatrix[
^]