Save image from DocuValue

static void saveImageFromDocuValue(Args _args) { DocuValue docuValue; BinData binData; ; select firstOnly docuValue where docuValue.Name == 'testImage'; binData = new BinData(); binData.setData(docuValue.File); binData.saveFile('D:\\Images\\' + docuValue.Name + '.' + docuValue.FileType); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.