Created
April 6, 2023 12:56
-
-
Save bayramcetin/2ec3f6069955f4c53ec0bf40282c15d4 to your computer and use it in GitHub Desktop.
File upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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