When i user DAM image path with query parameter it downloads image instead of opening it. Any way of restricting download but show image?
Please specify the steps you are performing to see this behaviour.
Take example of any DAM image.
say www.abc.com/content/dam/xyz.jpb when we open up this path it opens image. Where as same path with query parameter www.abc.com/content/dam/xyz.jpb?123 downlaods the image. This happens in Desktop but in Mobile it is fine.
WHen you select the DAM asset to place into a page - are you using a dialog and a control like Pathfinder?
When selecting a DAM image from a dialog so that the Asset is displayed in the web page - it will never download but will be displayed in component.
To display the Asset in a web page - you can use a dialog. See this article - where in each multi-field - am asset is selected and it renders in the component.
Adobe Experience Manager Help | Creating a HTL Repeating Data Set 6.3 Component that uses Sling Mode...
Are you trying to modify the Asset by using the Asset HTTP API -- Assets HTTP API ?