Hello ... I currently have a simple Asset Management SharePoint Custom List with the following features using Javascript to perform the following features / functions:
- New Form	
- javascript to create unique string based on date/time and places into SP Form Title field
 - Javascript Library reads Title field and generates a base64 encoded string of a Data Matrix barcode (.bmp format)
 - Form PreSaveAction() javascript takes base64 encoded string, converts to binary, and then creates a Title.bmp file into a SharePoint Library with the binary data as the content which provides an image file for display within views
 
 
I would like very much to uplift the javascript/library steps into a K2 Five SharePoint Workflow on New List Item Trigger...
Can K2 Five Workflow perform the following actions:
- Read a SharePoint List Item field containing the base64/image bmp data string (this is text)
 - Convert the base64 string into binary data (does K2 workflow have a binary type element?)
 - Create a file into a SharePoint Library using the binary data as the file content
 
--------------------------------------------
Update 1:
Making some progress ... see attached ...
- Using the Add Document to Library workflow step
 - Workflow is error'ing out with message: Data at teh root level is invalid. Line1, position 1.
 - Not sure what it is looking for ...
 
The coding solution uses the base64 converted to binary as the content ... see attached
Thanx !!!
            