Skip to content

Instantly share code, notes, and snippets.

@bayramcetin
Created April 6, 2023 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bayramcetin/2ec3f6069955f4c53ec0bf40282c15d4 to your computer and use it in GitHub Desktop.
Save bayramcetin/2ec3f6069955f4c53ec0bf40282c15d4 to your computer and use it in GitHub Desktop.
File upload
[Form]
public class BoraxStampSignParameters extends FormRun
{
[Control("Custom")]
class FileUpload1
{
/// <summary>
///
/// </summary>
public void OnUploadCompleted()
{
FileUploadTemporaryStorageResult result = this.getFileUploadResult() as FileUploadTemporaryStorageResult;
super();
if(result && result.getUploadStatus())
{
str fileurl = result.getDownloadUrl();
using(System.IO.MemoryStream stream = result.openResult() as System.IO.MemoryStream)
{
container con = Binary::constructFromMemoryStream(stream).getContainer();
BoraxStampSignParameters parameters = BoraxStampSignParameters.dataSource().cursor();
parameters.Image = con;
BoraxStampSignParameters_ds.research(true);
//BoraxStampSignParameters_ds.refresh();
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment