Skip to content

Commit 4a924b7

Browse files
Merge pull request #446 from SyncfusionExamples/ES-958632-AWS-Lambda
ES-958632- Changes in AWS-Lambda sample
2 parents 410b6a3 + 0824d2a commit 4a924b7

File tree

2 files changed

+0
-26
lines changed
  • Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image
  • Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject

2 files changed

+0
-26
lines changed

Word-to-Image-conversion/Convert-Word-to-image/AWS/AWS_Lambda/Convert-Word-Document-to-Image/Function.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,6 @@ public class Function
2020
/// <returns></returns>
2121
public string FunctionHandler(string input, ILambdaContext context)
2222
{
23-
//Path to the original library file.
24-
string originalLibraryPath = "/lib64/libdl.so.2";
25-
26-
//Path to the symbolic link where the library will be copied.
27-
string symlinkLibraryPath = "/tmp/libdl.so";
28-
29-
//Check if the original library file exists.
30-
if (File.Exists(originalLibraryPath))
31-
{
32-
//Copy the original library file to the symbolic link path, overwriting if it already exists.
33-
File.Copy(originalLibraryPath, symlinkLibraryPath, true);
34-
}
35-
3623
string filePath = Path.GetFullPath(@"Data/Input.docx");
3724
//Open the file as Stream.
3825
using (FileStream docStream = new FileStream(filePath, FileMode.Open, FileAccess.Read))

Word-to-PDF-Conversion/Convert-Word-document-to-PDF/AWS/MyLamdaProject/MyLamdaProject/Function.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ public class Function
2727
/// <returns></returns>
2828
public string FunctionHandler(string input, ILambdaContext context)
2929
{
30-
//Path to the original library file.
31-
string originalLibraryPath = "/lib64/libdl.so.2";
32-
33-
//Path to the symbolic link where the library will be copied.
34-
string symlinkLibraryPath = "/tmp/libdl.so";
35-
36-
//Check if the original library file exists.
37-
if (File.Exists(originalLibraryPath))
38-
{
39-
//Copy the original library file to the symbolic link path, overwriting if it already exists.
40-
File.Copy(originalLibraryPath, symlinkLibraryPath, true);
41-
}
42-
4330
string filePath = Path.GetFullPath(@"Data/Adventure.docx");
4431

4532
//Load the file from the disk

0 commit comments

Comments
 (0)