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
20
20
/// <returns></returns>
21
21
public string FunctionHandler ( string input , ILambdaContext context )
22
22
{
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
-
36
23
string filePath = Path . GetFullPath ( @"Data/Input.docx" ) ;
37
24
//Open the file as Stream.
38
25
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
27
27
/// <returns></returns>
28
28
public string FunctionHandler ( string input , ILambdaContext context )
29
29
{
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
-
43
30
string filePath = Path . GetFullPath ( @"Data/Adventure.docx" ) ;
44
31
45
32
//Load the file from the disk
You can’t perform that action at this time.
0 commit comments