File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff 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 ) )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments