• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Variable value is not considered while executing a command.

 
sudheer raj shetty
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the below program am using the image path as input parameters for function imagecompare. In this function am trying to compare two images using compare command.

But when i try to execute this code, it is considering "sourceone" itself as parameter, actually i want its value (i,e) "c:\\autobanner\\GoldImage\\mybanner1.jpg"; to be considered. How to resolve this issue?

 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shouldn't be
 
sudheer raj shetty
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh..!!
 
Rob Spoor
Sheriff
Pie
Posts: 20396
47
Chrome Eclipse IDE Java Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, because there will be problems when either path has a space in them, it should be this:
Or, alternatively, use a String array:
 
Maneesh Godbole
Saloon Keeper
Posts: 10976
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops.
Forgot about white spaces.
Thanks Rob.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic