Storing and Retrieving images from DB2 using Worklight SQL Adapters?
问题 I'm trying to store images in DB2 Database as BLOB contents. I used JS to convert the image content to base64 . function loadImageFileAsURL() { var filesSelected = document.getElementById("inputFileToLoad").files; if (filesSelected.length > 0) { var fileToLoad = filesSelected[0]; var fileReader = new FileReader(); fileReader.onload = function(fileLoadedEvent) { var textAreaFileContents = document.getElementById ( "textAreaFileContents" ); textAreaFileContents.innerHTML = fileLoadedEvent