I suggest to change the server site script to support fileuploads and read the data from the file uploaded, convert the file to base64 on Serverside and store the value in DB then.
Generally speaking it is a mistake to put images into the db. You should store the filename in DB and the file itself on Disc (webspace).